//
//  SafeTimerVC.m
//  MRC_Playground
//
//  Created by Developer on 2022/3/31.
//

#import "SafeTimerVC.h"
#import "JKTimerControl.h"

@interface SafeTimerVC ()<JKTimerControlDelegate>

@end

@implementation SafeTimerVC{
    JKTimerControl *_safeTimer;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.view.backgroundColor = [UIColor whiteColor];
    
    _safeTimer = [[JKTimerControl alloc] init];
    [_safeTimer creatTimerWithDelegate:self];
}

- (void)dealloc{
    NSLog(@"safeTimerVC dealloc");
    [_safeTimer resetDelegate];
    [_safeTimer release]; _safeTimer = nil;
    [super dealloc];
}

#pragma mark - JKTimerControlDelegate
- (void)jk_timerCallback{
    NSLog(@"%@",self);
}

@end
